<div class="container">
    <div class="row">
        <div class="span2">
            <?php
            $menu = 'menu_' . $this->usertype . '.php';
            include($menu);
            ?>
        </div>

        <div class="span10">
            <h3 class="topic">ข้อมูล <?php echo $topic_type; ?></h3>
            <div class="well" style="min-height:500px;">
                <?php
                if (isset($login) && $login !== false) {
                    foreach ($login as $key => $value2) {
                        
                    }
                } else {
                    $value2 = false;
                }

                if (isset($profile) && $profile !== false) {
                    foreach ($profile as $key => $value3) {
                        
                    }
                } else {
                    $value3 = false;
                }
                ?>





                <div  style="">     
                    <label for="title" class="control-label">ข้อมูลเข้าระบบ</label>

                    <div class="control-group">
                        <label for="title" class="control-label">ชื่อผู้ใช้</label>
                        <div class="controls">
                            <?php echo ($value2['username']) ?>
                        </div>
                    </div>
                    <div class="control-group">
                        <label for="title" class="control-label">รหัสผ่าน</label>
                        <div class="controls">
                            <?php echo ($value2['password']) ?>
                        </div>
                    </div>

                </div> 

                <?php
                if ($value2['type'] != 'admin') {
                    ?>
                    <div  style="">     
                        <label for="title" class="control-label">ข้อมูลส่วนตัว</label>

                        <div class="control-group">
                            <label for="title" class="control-label">ชื่อ</label>
                            <div class="controls">
                                <?php echo ($value2['name']) ?>
                            </div>
                        </div>
                        <div class="control-group">
                            <label for="title" class="control-label">วันเกิด</label>
                            <div class="controls">
                                <?php echo ($value2['birth']) ?>
                            </div>
                        </div>
                        <div class="control-group">
                            <label for="title" class="control-label">ที่อยู่</label>
                            <div class="controls">
                                <?php echo ($value2['address']) ?>
                            </div>
                        </div>
                        <div class="control-group">
                            <label for="title" class="control-label">เบอร์โทรศัพท์</label>
                            <div class="controls">
                                <?php echo ($value2['tel']) ?>
                            </div>
                        </div>
                        <div class="control-group">
                            <label for="title" class="control-label">อีเมล์</label>
                            <div class="controls">
                                <?php echo ($value2['email']) ?>
                            </div>
                        </div>

                    </div> 
                <?php }
                ?>









            </div>

        </div>
    </div>  


</div>
<hr>
<script language="javascript" type="text/javascript">


    function add_order()
    {
        $('#del').removeAttr('disabled');
        // $("#tool").append($("<strong>Hello</strong>").html());
        $("#tool").append($('#add_more').html());

        // validate engin ==============================
        $("#post").validationEngine();
        $(window).dblclick(function() {
            jQuery('#post').validationEngine('hide');
        });
        // validate engin ==============================
    }



    function del_order()
    {
        if ($('#tool .add_order').length > 1)
        {
            $("#tool .add_order:last").remove();
        }
        else
        {
            $('#del').attr('disabled', 'disabled');
        }
    }
    function check_type()
    {
        // $i = 1;
        //   $.each( $('.order_type') , function(){
        //           var id = $(this).val();
        //           var add = $( "#"+id).val();
        //           if(add != 'ไม่ทำ')
        //               {
        //                   $("#tool .tool_id").show();
        //               }
        //             else
        //             {
        //               $("#tool .tool_id").hide();
        //             }
        //     $i++;
        //    });
    }


</script>


